﻿using System;
using System.Collections.Generic;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Sanctuary.Core
{
    public class Character
    {
        public string Name { get; set; }
        public string DisplayName { get; set; }

        public void AddEmotion(CharacterEmotion emotion)
        {
            emotionList.Add(emotion.Name, emotion);
        }

        private Dictionary<string, CharacterEmotion> emotionList = new Dictionary<string,CharacterEmotion>();

        public CharacterEmotion this[string emotion]
        {
            get
            {
                if (!emotionList.ContainsKey(emotion))
                {
                    throw new GameContentException("Character Emotion: " + emotion + " not found.");
                }
                return emotionList[emotion];
            }
        }
    }
}
